package Chapter08.homework.Homework04;

/**
 * @author 杨森
 * @date 2022年10月08日 19:52
 */
public class Manager extends Employee {
    private double bonus;

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    public Manager() {
    }

    public Manager(String name, double daySal, int day, int level) {
        super(name, daySal, day, level);
    }

    @Override
    public void printSal(){
        System.out.println(getName()+"工资为："+(bonus+getDaySal()*getDay()*getLevel()));
    }
}
